* (bug 33819) Display filesize on Special:NewFiles in appropriate unit.
authorSam Reed <reedy@users.mediawiki.org>
Thu, 19 Jan 2012 16:37:54 +0000 (16:37 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 19 Jan 2012 16:37:54 +0000 (16:37 +0000)
RELEASE-NOTES-1.19
includes/ImageGallery.php

index a783d45..740857f 100644 (file)
@@ -228,6 +228,7 @@ production.
   of whatever the query value contains.
 * (bug 4438) Add CSS hook for current WikiPage action.
 * (bug 33703) Common border-bottom color for <abbr> should inherit default (text) color
+* (bug 33819) Display filesize on Special:NewFiles in appropriate unit.
 
 === API changes in 1.19 ===
 * Made action=edit less likely to return "unknownerror", by returning the actual error
index 09f9ba8..68a5a20 100644 (file)
@@ -314,8 +314,7 @@ class ImageGallery {
 
                        if( $this->mShowBytes ) {
                                if( $img ) {
-                                       $fileSize = wfMsgExt( 'nbytes', array( 'parsemag', 'escape'),
-                                               $wgLang->formatNum( $img->getSize() ) );
+                                       $fileSize = $wgLang->formatSize( $img->getSize() );
                                } else {
                                        $fileSize = wfMsgHtml( 'filemissing' );
                                }